package com.family.menage.service.impl;

import com.family.menage.controller.vo.HousesVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.family.common.utils.PageUtils;
import com.family.common.utils.Query;

import com.family.menage.dao.HousesDao;
import com.family.menage.entity.HousesEntity;
import com.family.menage.service.HousesService;


@Service("housesService")
public class HousesServiceImpl extends ServiceImpl<HousesDao, HousesEntity> implements HousesService {



    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HousesEntity> page = this.page(
                new Query<HousesEntity>().getPage(params),
                new QueryWrapper<HousesEntity>()
        );

        return new PageUtils(page);
    }



}